﻿<UserControl x:Class="AutoLoL.Tabs.ContactTab"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="428" d:DesignWidth="672">
    <StackPanel Margin="10">
        <TextBlock FontSize="12" Margin="10" HorizontalAlignment="Left" Text="Submit bug reports by filling out the following form. Use the template as a guide." />
        <StackPanel Orientation="Horizontal" Margin="5">
            <TextBlock HorizontalAlignment="Left" Text="Email*:" VerticalAlignment="Top" Width="90" TextAlignment="Right" />
            <TextBox HorizontalAlignment="Left" Text="{Binding Email, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" Width="304" Margin="5,0,0,0" />
        </StackPanel>
        <StackPanel Orientation="Horizontal" Margin="5">
            <TextBlock HorizontalAlignment="Left" Text="Subject:" VerticalAlignment="Top" Width="90" TextAlignment="Right" />
            <TextBox HorizontalAlignment="Left" Text="{Binding Subject}"  VerticalAlignment="Top" Width="304" Margin="5,0,0,0" />
        </StackPanel>
        <StackPanel Orientation="Horizontal" Margin="5">
            <TextBlock HorizontalAlignment="Left" Text="Message*:" VerticalAlignment="Top" Width="90" TextAlignment="Right" />
            <TextBox Height="189" VerticalContentAlignment="Top" VerticalScrollBarVisibility="Visible" TextWrapping="Wrap" Width="304" AcceptsReturn="True" AcceptsTab="True" Text="{Binding Message,UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,0" />
        </StackPanel>
        <Button Command="{Binding SubmitCommand}" Content="Submit" Height="23" Width="75" HorizontalAlignment="Left" Margin="100 5 0 0" />
        <TextBlock Margin="100 5 0 0" Width="300" HorizontalAlignment="Left" Height="100" Text="{Binding ResultMessage, NotifyOnTargetUpdated=True}" TextWrapping="Wrap">
            <TextBlock.Triggers>
                <EventTrigger RoutedEvent="Binding.TargetUpdated">
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:0" To="1.0" />
                            <DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:2" From="1.0" To="0.0" BeginTime="0:0:5" />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </TextBlock.Triggers>
        </TextBlock>
    </StackPanel>
</UserControl>
